package com.itheima.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@RestController
@RequestMapping("/resource")
public class RuleController {

    private static final Logger log = LoggerFactory.getLogger(RuleController.class);


    /**
     * @param params params
     */
    @PostMapping("/process")
    public void process(@RequestBody Map<String, Object> params) {
        log.info("规则引擎触发：resource-process------->>>>>>");
        params.forEach((key, value) -> System.out.println(key + ":" + value));
    }


}
